Hi. After some weeks trying to work out this problem i reformulate my previous ticket to add details and maybe get some help from you guys.
I have 4 devices with ios xr. Using template in forums i ve been able to import query to graph optic power on some interfaces. I succeded in two of the 4 devices, but the same templates, query and script that works with them does not work with the other 2.
Focusing in one of the devices in which i cant get this kind of graph to work (others graphs, like traffic for instance, work without any problem) i tried the following:
1) log information in debug mode
06/24/2020 12:29:04 PM - CMDPHP: Poller[0] Host[968] DS[35419] WARNING: Result from SERVER not valid. Partial Result: 06/24/2020 12
:29:00
06/24/2020 12:29:04 PM - CMDPHP: Poller[0] Host[968] DS[35419] SERVER: /usr/share/cacti/site/scripts/ss_cisco_sfp_dom.php ss_sfp dcb
2poc1.in.antel.net.uy xxxxx 2 get tx 49087342.65863335, output: 06/24/2020 12:29:00 PM - PHPSVR: Poller[0] Maximum runtime of 30
0
06/24/2020 12:29:04 PM - CMDPHP: Poller[0] Host[968] DS[35419] WARNING: Result from SERVER not valid. Partial Result: U
06/24/2020 12:29:04 PM - CMDPHP: Poller[0] Host[968] DS[35419] SERVER: /usr/share/cacti/site/scripts/ss_cisco_sfp_dom.php ss_sfp dcb
2poc1.in.antel.net.uy xxxxx 2 get rx 49087342.65863335, output: U
2) Executing
php -q cmd.php 968 35419 works ok
06/24/2020 12:35:00 PM - CMDPHP: Poller[0] Host[968] DS[35419] SERVER: /usr/share/cacti/site/scripts/ss_cisco_sfp_dom.php ss_sfp dcb
2poc1.in.antel.net.uy xxxxx 2 get tx 49087342.65863335, output: -1.4026
06/24/2020 12:35:00 PM - CMDPHP: Poller[0] Host[968] DS[35419] SERVER: /usr/share/cacti/site/scripts/ss_cisco_sfp_dom.php ss_sfp dcb
2poc1.in.antel.net.uy xxxxx 2 get rx 49087342.65863335, output: -3.5655
(one side note, when i executed command i was expecting only to manually poll device 968, but it happens that also poll other devices)
3) From script server works ok
root@alamo:/usr/share/cacti/site# php /usr/share/cacti/site/script_server.php
PHP Script Server has Started - Parent is cmd
/usr/share/cacti/site/scripts/ss_cisco_sfp_dom.php ss_sfp dcb2poc1.in.antel.net.uy xxxxx 2 get tx 49087342.65863335
-1.4026
/usr/share/cacti/site/scripts/ss_cisco_sfp_dom.php ss_sfp dcb2poc1.in.antel.net.uy xxxxxx 2 get rx 49087342.65863335
-3.5655
Is not a problem with script permisions. Same templates and scripts work in 2 of my 4 devices.
Any help would be appreciated. Thanks
graps Nan, no same output cmd.php and cacti log
Moderators: Developers, Moderators
Who is online
Users browsing this forum: No registered users and 31 guests