Search found 7 matches

by TcoUpLoad
Fri Nov 10, 2023 6:07 am
Forum: Open Source Nagios Projects
Topic: nagios core command size
Replies: 6
Views: 10365

Re: nagios core command size

Hi,

Thanks @danderson.
Even with " at the USERx macros it need to be escaped. work perfectly.
by TcoUpLoad
Wed Nov 08, 2023 1:01 pm
Forum: Open Source Nagios Projects
Topic: nagios core command size
Replies: 6
Views: 10365

Re: nagios core command size

Hi, More stange! if i run the command on shell with the user that run nagios server, the command works great and respond what should to be. The command has been giving the error always after the priv pass, the last char of priv pass is $. it need to be escaped at some how? At the macros all have &qu...
by TcoUpLoad
Wed Nov 08, 2023 6:21 am
Forum: Open Source Nagios Projects
Topic: nagios core command size
Replies: 6
Views: 10365

Re: nagios core command size

Hi, I already test some variants of this line to get that conclution. 1st i try $USER1$/check_snmp -o $ARG1$ -P 3 -U $USER3$ -L authPriv -a SHA -A $USER4$ -x AES-128 -X $USER5$ -H $HOSTADDRESS$ with host name at the end and it return with "No Host defined" error. I didn't get it the first ...
by TcoUpLoad
Tue Nov 07, 2023 2:07 pm
Forum: Open Source Nagios Projects
Topic: nagios core command size
Replies: 6
Views: 10365

nagios core command size

Hi, Can anyone tell me the maximum size of a command in Nagios Core? I have this command but whatever I put at the end, Nagios will say it's missing, I've already tested it. $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -P 3 -U $USER3$ -L authPriv -a SHA -A $USER4$ -x AES-128 -X $USER5$ If you enter...
by TcoUpLoad
Tue Jun 13, 2023 11:53 am
Forum: Open Source Nagios Projects
Topic: Does Check_snmp plugin for Nagios Core only fetch snmp GET OIDs?
Replies: 2
Views: 1627

Re: Does Check_snmp plugin for Nagios Core only fetch snmp GET OIDs?

you can call IFDESCR as well. but i have detect an issue in nagios core 4.4.7. the command $USER1$/check_snmp -H $HOSTADDRESS$ -P 3 -U $USER3$ -L authPriv -a $USER4$ -A $USER5$ -x $USER6$ -X $USER7$ -o $ARG1$ $ARG2$ in shell return ok.. but in dashboard return UNKNOWN I already have tried in ARG1 li...
by TcoUpLoad
Tue Jun 13, 2023 11:45 am
Forum: Open Source Nagios Projects
Topic: Snmp Check Status
Replies: 2
Views: 1775

Re: Snmp Check Status

First my apologies for so late response. Answering to your questions, yes, i am running with nagios user. In my post is a mistake made by me, the (undefined) section is not an error but an indication that the 2nd argument is not defined. In dashboard that command return UNKNOWN in the shell it retur...
by TcoUpLoad
Tue May 16, 2023 7:37 am
Forum: Open Source Nagios Projects
Topic: Snmp Check Status
Replies: 2
Views: 1775

Snmp Check Status

Our snmp command as named OID can nagios understand them? if i run the command at shell /usr/local/nagios/libexec/check_snmp -H [IP] -P 3 -U [USER] -L authPriv -a SHA -A [KEY] -x AES -X [KEY] -o IF-MIB::ifOperStatus.10150 SNMP OK - up(1) it return everything ok if nagios core run the command it retu...